package com.github.zzay.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.zzay.user.entity.User;
import com.github.zzay.user.dto.UserDto;
import com.github.zzay.user.service.impl.UserServiceImpl;

import java.util.Map;

/**
 * @author zzay
 * @interfaceName UserService
 * @description User Service
 * @create 2022/04/30 23:24
 * @see UserServiceImpl
 */
public interface UserService extends IService<User> {

    /**
     * Register
     *
     * @param userDto User DTO
     * @return Operation result
     */
    Boolean register(UserDto userDto);

    /**
     * Log-in
     *
     * @param userDto User DTO
     * @return Operation result
     */
    Map<String, String> login(UserDto userDto);

    /**
     * Log-out
     *
     * @param userDto User DTO
     * @return Operation result
     */
    Boolean logout(UserDto userDto);

}
